package com.dragon.modules.yuegou.model.member;

import com.dragon.modules.yuegou.entity.member.BenefitEntity;
import com.dragon.modules.yuegou.enums.member.BenefitBenefitType;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * 商圈权益表模型类
 * 
 * @author pbuilder generated
 * @date 2021-12-15 17:04:53
 * @company sgy
 * @version 2.0
 * @see Length 长度限制
 * @see NotNull 对象非空
 * @see NotEmpty 字符串、集合、表、数组非空
 */
public class Benefit extends BenefitEntity {

	/**
	 * 构造一个空商圈权益表模型对象
	 */
	public Benefit(){
		super();
	}
	
	/**
	 * 依据实体对象的信息构造一个商圈权益表模型对象
	 * 
	 * @param entity 实体对象
	 */
	public Benefit(BenefitEntity entity){
		super(entity);
	}

	/**
	 * 依据其它对象的信息构造一个商圈权益表模型对象
	 * 
	 * @param other 其它对象
	 */
	public Benefit(Benefit other){
		super(other);
	}


	@Override
	public String getId() {
    	return id;
    }

    /**
	 * 设置id
	 * 
	 * @param id id
	 * @return 当前对象
	 */
    public Benefit id(String id) {
    	this.id = id;
    	return this;
    }

	@Override
	public String getBusdId() {
    	return busdId;
    }

    /**
	 * 设置商圈ID
	 * 
	 * @param busdId 商圈ID
	 * @return 当前对象
	 */
    public Benefit busdId(String busdId) {
    	this.busdId = busdId;
    	return this;
    }

	@Override
	public BenefitBenefitType getBenefitType() {
    	return benefitType;
    }

    /**
	 * 设置[枚举]权益类型：0-商品折扣-DISCOUNT、1-多倍积分-MAGNIFICATION
	 * 
	 * @param benefitType [枚举]权益类型：0-商品折扣-DISCOUNT、1-多倍积分-MAGNIFICATION
	 * @return 当前对象
	 */
    public Benefit benefitType(BenefitBenefitType benefitType) {
    	this.benefitType = benefitType;
    	return this;
    }
}
